import bs4
from langchain_community.document_loaders import WebBaseLoader
from typing import Tuple


def load(uri: Tuple[str, ...], html_class: Tuple[str, ...]):
    loader = WebBaseLoader(
        web_paths=uri,  # 接受多个链接
        bs_kwargs=dict(
            parse_only=bs4.SoupStrainer(
                class_=html_class  # 接受多个 html class name, 用于指定摄取哪些html calss 里的内容
            )
        ),
    )
    docs = loader.load()
    return docs
